

			* APPENDIX 4 - Replications with the Rest of the Electorate as a Reference Category

cd "$data"			
use "data1.dta", clear	
	
	
gen labourvsrest = . 
replace labourvsrest = 1 if pid6==2 
replace labourvsrest = 0 if pid6==0 | pid6==1 | pid6==3 | pid6==4 | pid6==5

label define labourvsrestlabels 1"Labour identifier" 0"everyone else"
label values labourvsrest labourvsrestlabels

gen convsrest = . 
replace convsrest = 1 if pid6==1
replace convsrest = 0 if pid6==0 | pid6==2 | pid6==3 | pid6==4 | pid6==5

label define convsrestlabels 1"Labour identifier" 0"everyone else"
label values convsrest convsrestlabels


eststo M1: regress shiftw6w7_LR i.labourvsrest, robust
eststo M2: regress shiftw6w7_LR i.convsrest, robust

cd "$tables"	
esttab M1 M2 using "${tables}/Table4_1.tex", b(3) se(3) nogap replace




